package com.base.common.edu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @Author Maple.Chen
 * @Description 教职工文件管理服务-教职工账号与SFTP账号映射
 * @Date 18:23 2021/1/29
 **/
@Data
@ApiModel(description = "教职工文件管理服务-账户定义实体")
@JsonIgnoreProperties(value = {"handler"})
public class SftpAccount implements Serializable {

    private static final long serialVersionUID = 8830947127867402712L;
    @ApiModelProperty( value = "教职工SFTP账户映射表主键：自增序列")
    private Integer s_a_m_id;
    @ApiModelProperty( value = "一对一映射教职工")
    private Staff staff;
    @ApiModelProperty( value = "SFTP账户账号")
    private String sftpUsername;
    @ApiModelProperty( value = "SFTP账户密码")
    private String sftpPassword;
    @ApiModelProperty( value = "教职工SFTP账户状态（-1：失效[Invalid]，0：未激活[Inactive]，1：已激活[Activated]）")
    private Integer activateStatus;
    @ApiModelProperty( value = "账号创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty( value = "教职工SFTP账户操作记录")
    private Set<SftpAccountLog> sftpAccountLogs = new HashSet<SftpAccountLog>();

}
